package com.bwie.task;

import com.bwie.service.IAuthService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author GaoYiJie
 * @Description
 * @Create 2025/4/17 11:04
 * @Version 1.0
 */
@Component
public class ApplyTokenTask {

    @Resource
    IAuthService authService;



    @Scheduled(cron = "0 0/4 * * * ?")
    public void applyTokenTask(){

        String token = authService.applyToken();

    }
}
